
<%@ page import="condicao.CondicaoDeCompra" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main" />
  <g:set var="entityName" value="${message(code:'condicaoDeCompra.label', default:'CondicaoDeCompra')}" />
  <title>${entityName} List</title>
</head>
<body>
  <div class="nav">
    <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
    <span class="menuButton"><g:link class="create" action="create">New ${entityName}</g:link></span>
  </div>
  <div class="body">
    <h1>${entityName} List</h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <g:form name="searchForm" action="list">
      <input type="text" id="buscaCondicoes" name="buscaCondicoes" value=""/>
      <input type="submit" value="Buscar">
    </g:form>
    <div class="list">
      <table>
        <thead>
          <tr>

        <g:sortableColumn property="tdescricao" title="${message(code:'condicaoDeCompra.tdescricao.label', default:'Descrição')}" />

        <g:sortableColumn property="tforma_parcelamento_chk" title="${message(code:'condicaoDeCompra.tforma_parcelamento_chk.label', default:'Forma Parcelamento')}" />

        <g:sortableColumn property="tquantidade_parcelas" title="${message(code:'condicaoDeCompra.tquantidade_parcelas.label', default:'Qtde parcelas')}" />

        <g:sortableColumn property="tgrupo_comissao_fk" title="${message(code:'condicaoDeCompra.tgrupo_comissao_fk.label', default:'Grupo Comissão')}" />

        </tr>
        </thead>
        <tbody>
        <g:each in="${condicaoDeCompraInstanceList}" status="i" var="condicaoDeCompraInstance">
          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

            <td><g:link action="show" id="${condicaoDeCompraInstance.tcodigoPk}">${fieldValue(bean:condicaoDeCompraInstance, field:'tdescricao')}</g:link></td>

          <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tformaParcelamentoChk')}</td>

          <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tquantidadeParcelas')}</td>

          <td>${fieldValue(bean:condicaoDeCompraInstance, field:'tgrupoComissaoFk')}</td>

          </tr>
        </g:each>
        </tbody>
      </table>
    </div>
    <div class="paginateButtons">
      <g:if test="${condicaoDeCompraInstanceList == null}">
        <g:paginate total="0" />
      </g:if>
      <g:else>
        <g:paginate total="${condicaoDeCompraInstanceList.size()}" />
      </g:else>
    </div>
  </div>
</body>
</html>
